<template>
  <div>
    <!-- 三级分类栏 -->
    <CategorySelector :isDisable="!showAttrTable" />
    <!-- 属性展示 -->
    <AttrList v-if="showAttrTable" @setShowAttrTable="showAttrTable = $event" />
    <!-- 添加属性 -->
    <AddAttr v-else @setShowAttrTable="showAttrTable = $event" />
  </div>
</template>

<script lang="ts">
export default {
  name: 'AttrList',
}
</script>

<script lang="ts" setup>
import { ref } from 'vue'
import CategorySelector from '@/components/CategorySelector/index.vue'
import AttrList from './attrList/index.vue'
import AddAttr from './addAttr/index.vue'

//   是否展示添加属性的表格
const showAttrTable = ref(true)
</script>

<style scoped></style>
